home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000247_Martyn.Johnson@cl.cam.ac.uk_Fri Feb 4 10:51:19 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  3KB

  1. Received: from swan.cl.cam.ac.uk by cs.umb.edu with SMTP id AA23385
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 4 Feb 1994 16:50:06 -0500
  3. Received: from labes.cl.cam.ac.uk (user maj (rfc931)) by swan.cl.cam.ac.uk 
  4.           with SMTP (PP-6.5) to cl; Fri, 4 Feb 1994 10:51:23 +0000
  5. To: Timothy Murphy <tim@maths.tcd.ie>
  6. Cc: tex-k@cs.umb.edu, Martyn.Johnson@cl.cam.ac.uk
  7. Subject: Re: Bugs in Makefile.in and configure(.in)
  8. In-Reply-To: Your message of Wed, 02 Feb 1994 13:14:55. <9402021314.aa02235@hamilton.maths.tcd.ie>
  9. Date: Fri, 04 Feb 1994 10:51:19 +0000
  10. From: Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
  11. Message-Id: <"swan.cl.cam.:017560:940204105125"@cl.cam.ac.uk>
  12.  
  13. > Second gripe.
  14. > It should be easier to change -g to -O,
  15. > for those few amongst us who are not masochists.
  16. > [What he really means:
  17. > Only pointy-heads and weirdos compile with -g.]
  18. > Under Linux (Is there any other operating system?)
  19. > files compiled with -g are vastly larger than those compiled with -O.
  20. > I'd also like to see -s (stripping) by default.
  21. > (I think you have to change -g to -O in 4 Makefile's or Makefile.in's:
  22. > web2c, kpathsea, dvipsk and xdvik.)
  23.  
  24. I raised this point directly with Karl a little while ago.  My
  25. suggestion was to declare CFLAGS in the top level Makefile and
  26. pass it down by putting CFLAGS='$(CFLAGS)' into "makeargs".
  27. This is what I do, and it works fine for me.
  28.  
  29. Karl said he didn't like it, but preferred to put overriding
  30. CFLAGS on the "make" command line, saying that it would then be
  31. automatically passed down to sub-makes.
  32.  
  33. I accepted this argument at the time, but I later realised that
  34. the assertion just isn't true.  The variables on the command line
  35. only apply to the top level, and in all the versions of "make" I've
  36. come across, they are not automatically passed down to sub-levels.
  37.  
  38. The definitition of "makeargs" contains, at the end, "$(MAKEARGS)".
  39. What is this for?  MAKEARGS is never set in the makefile, and "make"
  40. does not set it automatically - at least mine doesn't.  Are we
  41. meant to say
  42.  
  43.     make MAKEARGS="CFLAGS=-O"
  44.  
  45. ?  Even that only passes it down one level.  How about
  46.  
  47.     make MAKEARGS="CFLAGS=-0 MAKEARGS=CFLAGS=-O"
  48.  
  49. ???
  50.  
  51. Personally, I believe that all of this mess should get sorted out
  52. when the Makefiles get generated from the Makefile.in files at
  53. configure time.  There should be ONE place where we define overrides
  54. for make variables, and have them inserted into the boilerplate section
  55. of each Makefile.  This avoids passing all those paths down too.
  56.  
  57. (The idea of using imake was rejected, by the way).
  58.  
  59. Martyn Johnson      maj@cl.cam.ac.uk
  60. University of Cambridge Computer Lab
  61. Cambridge UK
  62.  
  63.